import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

const router = new Router({
  base: '/',
  mode: 'history',
  routes:
  [{
    path: '/',
    meta: { title: '个人信息' },
    component: (resolve) => require(['@/views/info.vue'], resolve)
  },{
    path: '/list',
    meta: { title: '数据列表' },
    component: (resolve) => require(['@/views/index.vue'], resolve)
  },{
    path: '/list/add',
    meta: { title: '新增数据' },
    component: (resolve) => require(['@/views/add.vue'], resolve)
  },{
    path: '*',
    meta: { title: '' },
    component: (resolve) => require(['@/views/info.vue'], resolve)
  }]
});

export default router